Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Change the open URL link to a button #17347

Merged
merged 2 commits into from
Feb 15, 2019

Conversation

patch-malone
Copy link
Contributor

@patch-malone patch-malone commented Feb 1, 2019

When trying to visit a page that isn't available as HTTPS a user may be shown a cancel page where they can either cancel the insecure visit or choose to override the restriction. The link of the URL shown at the bottom of that page misleadingly goes to an internal extension URL. Instead, change the actionable item into a button with a clear label describing the action.

Screenshots

Before

before screenshot

After

Notice the button at the bottom of the page
after screenshot

@pipboy96
Copy link
Contributor

pipboy96 commented Feb 1, 2019

Needs some work with CSS styling, but the idea is good.

@patch-malone
Copy link
Contributor Author

Is there another button that I can reference for the styling? I looked around for button-like UI elements but couldn't find anything so I made the button look similar to the S logo at the top of the page.

@Bisaloo Bisaloo added the ui label Feb 1, 2019
@pipboy96
Copy link
Contributor

pipboy96 commented Feb 1, 2019

@patch-malone Wait a couple of minutes, I will write a style.

@patch-malone patch-malone changed the title Change the open URL link into a button Change the open URL link to a button Feb 1, 2019
@pipboy96
Copy link
Contributor

pipboy96 commented Feb 1, 2019

I have another idea. To make the page seem more like an error page, the bg should be yellow, possibly striped too. HTTPS Everywhere logo needs to be fixed to remove white background though.

@pipboy96
Copy link
Contributor

pipboy96 commented Feb 1, 2019

You can apply these styles to html:

background: repeating-linear-gradient(45deg, #ffdc00, #ffdc00 10px, #e5c600 10px, #e5c600 20px);
min-height: 100vh; /* this fixes weird looping */

@pipboy96
Copy link
Contributor

pipboy96 commented Feb 1, 2019

To temporarily remove the white bg from the image, you can set mix-blend-mode to darken on it,

@patch-malone patch-malone force-pushed the open-url-button branch 2 times, most recently from 1d94da1 to cf79f52 Compare February 1, 2019 23:48
@pipboy96
Copy link
Contributor

pipboy96 commented Feb 2, 2019

Maybe instead of closing the page you should make it go back to the page that had unencrypted link and if that's impossible (page was opened directly) you should simply hide the button?

@patch-malone
Copy link
Contributor Author

Tab history isn't accessible. history.back() doesn't work correctly in this instance and document.referrer is blank. I'll remove the button. It can be added in a separate PR.

@patch-malone
Copy link
Contributor Author

@Bisaloo Are any other changes required before merging?

@Bisaloo
Copy link
Collaborator

Bisaloo commented Feb 15, 2019

Let's ask @zoracon. I know some people at the EFF are usually involved in UI PR review but I'll let @zoracon ping them if necessary.

@zoracon
Copy link
Contributor

zoracon commented Feb 15, 2019

@Bisaloo I can pull this down and review. The interstitial page does admittedly need work. We have UX dev plans in the making #16669, but I see no harm with looking this change over to see how it plays out.

@zoracon zoracon self-requested a review February 15, 2019 17:58
Copy link
Contributor

@zoracon zoracon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a small change to language I realized was outdated in the interstitial, but otherwise looks good to go and will merge soon

@zoracon zoracon merged commit d646eec into EFForg:master Feb 15, 2019
@zoracon zoracon added this to the Before the Next Release milestone Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants